<template>
	<view class="li-item">
		<view class="li-item-img"><image :src="item.picture.length!=0 ? https+item.picture[0].picturePath : '../../static/no_carpicture.jpg' " mode="scaleToFill"></image></view>
		<view class="li-item-cont">
			<view class="li-item-cont-title">{{ item.modelName }}</view>
			<view class="li-item-cont-bq">指导价：{{item.guidePrice}}万</view>
			<view class="li-item-cont-bq">纯电续航：{{item.miitCruisingMileage}}KM</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"tab-item",
		props:{
			item:{
				type: Object,
				default(){
					return {}
				}
			}
		},
		data() {
			return {
				https: getApp().globalData.picturePath,
			};
		}
	}
</script>

<style scoped lang="scss">
	.li-item{
		display:-webkit-box;;
	
		.li-item-img{
			width: 180rpx;
			height: 135rpx;
			margin-right: 20rpx;
			margin-top:10rpx;
			image{
				width: 100%;
				height: 100%;
				border-radius: 3px;
			}
		}
		.li-item-cont{
			flex: 1;
			.li-item-cont-title{
				font-size: 32rpx;
				color: #333;
				line-height: 40rpx;

				// -webkit-box-orient: vertical;
				// -webkit-line-clamp: 2;
				// overflow: hidden;
				overflow: hidden;
				    text-overflow: ellipsis;
				    white-space: nowrap;
			}
			.li-item-cont-bq{
				margin-top: 10rpx;
				font-size: 24rpx;
				color: #666;
			}
			.li-item-cont-money{
				margin-top: 10rpx;
				color: #f5af10;
				font-size: 24rpx;
				text{
					color: #DDB556;
					background-color: #F4E5C3;
					padding: 0rpx 12rpx;
					box-sizing: border-box;
					border-radius: 40rpx;;
					margin: 0rpx 12rpx;
					&:first-of-type{
						margin-left: 0rpx;
					}
				}
			}
			.li-item-cont-text{
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 28rpx;
				margin-top: 10rpx;
				.li-item-cont-text-time{
					font-size: 24rpx;
					color: #666;
				}
				.li-item-cont-text-w{
					color: #EB6E10;
				}
			}
		}
	}
</style>
